/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atomojo.sparql;

import java.net.URI;
import java.util.Map;
import java.util.TreeMap;

/**
 *
 * @author alex
 */
public abstract class Query {

   protected Prologue prologue;
   protected boolean named;
   protected URI dataset;
   protected WhereClause whereClause;
   public Query(Prologue prologue) {
      this.prologue = prologue;
      this.named = false;
      this.dataset = null;
      this.whereClause = null;
   }

   public Prologue getPrologue() {
      return prologue;
   }

   public void setPrologue(Prologue prologue) {
      this.prologue = prologue;
   }
   
   public abstract void resolve();
   
   public void setDataSet(boolean named,URI dataset)
   {
      this.named = named;
      this.dataset = dataset;
   }
   
   public boolean isNamed() {
      return named;
   }
   
   public URI getDataSet() {
      return dataset;
   }
   
   public WhereClause getWhereClause() {
      return whereClause;
   }

   public void setWhereClause(WhereClause whereClause) {
      this.whereClause = whereClause;
   }
   
   
   
}
